import request from '../utils/request';

export function getTopic(){
    return request.get('/topic/list')
}
export function getTopicDetail(id:number){
    return request.get('/topic/detail',{params:{id}})
}
export function getTopicRelated(id:number){
    return request.get('/topic/related',{params:{id}})
}
export function getTopicLeave(valueId:string,typeId:string='1',page?:string,size?:string){
    return request.get('/comment/list',{params:{valueId,typeId,page,size}})
}